pkgname=py3-aiohappyeyeballs
_pkgname=aiohappyeyeballs
pkgver=2.4.0
pkgrel=0
pkgdesc="Happy Eyeballs for asyncio"
url="https://pypi.org/project/aiohappyeyeballs"
arch="all"
license="Apache-2.0"
depends="
	python3
	"
makedepends="
	python3-dev
	py3-poetry-core
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="
	py3-pytest
	py3-pytest-asyncio
	py3-pytest-cov
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	PYTHONPATH="$(echo build/lib.*)" \
	pytest -v --no-cov
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
faef05edb94c69aa02a57dd8393b169dd01f566bb4ee2b043178c11aeb68116674806334592a5ef75d82972c4baac592fae61977e43b79ed6446a53f8a95d435  py3-aiohappyeyeballs-2.4.0.tar.gz
"
